﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;

namespace Core.Unity {
    public interface IInfoService {
        /// <summary>
        /// 指定Model class 在数据库中对应的表
        /// </summary>
        /// <param name="modelBuilder"></param>
        void OnModelCreating(ref DbModelBuilder modelBuilder);
        /// <summary>
        /// 异步获取数据之后触发该事件
        /// </summary>
        event EventHandler<ReceivedDataEventArgs> AfterQueryData;
        /// <summary>
        /// 从网络上获取数据
        /// </summary>
        void QueryData();
        /// <summary>
        /// 保存获取的数据
        /// </summary>
        void SaveData(object data);
    }
}
